<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<div class="top">
    <div class="logo_tetx hidden-xs">
        <div class="logo">
            <a href="javascript:void(0)"><img src="${sessionScope.sessionBaseInfo.logoFullUrl}"></a>
        </div>
        <div class="hotline">
            <span>客服热线：</span>
            <i>${sessionScope.sessionBaseInfo.hotNumber}</i>
        </div>
    </div>
</div>
<header class="header-frontend">
    <div class="navbar navbar-default navbar-static-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand hidden-lg" href="home/index"><img src="static/home/images/logo.png"/></a>
            </div>
            <div class="navbar-collapse collapse" style="height: 1px;">
                <ul class="nav navbar-nav">
                    <li><a href="home/">首页</a></li>
                    <c:forEach var="n" items="${sessionScope.webMenuList}">
                        <li><a href="${n.code}">${n.name}</a></li>
                    </c:forEach>
                </ul>
            </div>
        </div>
    </div>
</header>
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
    <ol class="carousel-indicators">
        <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
        <li data-target="#carousel-example-generic" data-slide-to="1"></li>
    </ol>
    <div class="carousel-inner" role="listbox">
        <div class="item active">
            <img src="static/home/images/banner.jpg" alt="汕头市利莱精细化工原料限公司">
        </div>
        <div class="item">
            <img src="static/home/images/banner.jpg" alt="汕头市利莱精细化工原料限公司">
        </div>
    </div>
    <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left"></span>
        <span class="sr-only">上一页</span>
    </a>
    <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right"></span>
        <span class="sr-only">下一页</span>
    </a>
</div>

<script type="application/javascript">
    function baseSelectMenu(index) {
        $(".navbar-nav").each(function () {
            $(this).find('li').each(function () {
                $(this).removeClass('active');
            });
        });

        $('ul li').eq(index).addClass('active');
    }
</script>